#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>

namespace Ui {
class Widget;
}

class Widget : public QWidget
{
    Q_OBJECT

public:
    explicit Widget(QWidget *parent = 0);
    ~Widget();

    //函数声明
    void labelTimeShow ();
    void labelSysActualShow(double sysActual);
    double sysModel (double sysInput);
    double controller_PID(double sysActual);

    //结构声明
    struct pidParameterStruct{
        double sysTarget;
        double PID_P;
        double PID_I;
        double PID_D;
        double error;
        double integral;
        double PID_Output;
        double errorLast;
    };
struct pidParameterStruct pid = {};

private:
    Ui::Widget *ui;
};

#endif // WIDGET_H
